package com.blb.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author wss
 * @since 2020-05-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_cargo_space")
public class CargoSpace extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 货位编号
     */
    private String cargoSpaceNo;

    /**
     * 库编号(t_warehouse表外键)
     */
    private String warehouseId;

    /**
     * 库区id(t_area表外键)
     */
    private String areaId;

    /**
     * 货架编号(t_shelf表外键)
     */
    private String shelfId;

    /**
     * 商品编号(t_product表外键)
     */
    private String productId;

    /**
     * 状态(1:有货2/:无货)
     */
    private String cargoSpaceStatus;
    /**
     * 货位备注
     */
    private String cargoSpaceRemark;

    @TableField(exist = false)
    private Warehouse warehouse;

    @TableField(exist = false)
    private Area area;

    @TableField(exist = false)
    private Shelf shelf;

    @TableField(exist = false)
    private Product product;


}
